package com.xxxy;

import com.alibaba.csp.sentinel.annotation.SentinelResource;
import com.xxxy.sentinelBlockHandler;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class sentinelController {
    @GetMapping(value = "/monitor/hello")
    @SentinelResource(value = "helloResource",blockHandler = "helloBlockHandler",blockHandlerClass = sentinelBlockHandler.class)
    public String hello(){
        return "hello sentinel";

    }
}
